package com.ruixue.artistserver.controller;

import com.ruixue.artistserver.service.ServiceFeginInterfaces;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class fegintest {

    @Autowired
    private ServiceFeginInterfaces serviceFeginInterfaces;

    @Value("${word}")
    private String word;

    @GetMapping("test1")
    public String test(@RequestParam(value = "token") String token,@RequestParam("name") String name){
        String testdemo = serviceFeginInterfaces.testdemo(name);
        return testdemo;
    }

    @GetMapping("/hello")
    public String index(@RequestParam String name) {
        return name+","+this.word;
    }


}
